It can be seen that branch testing works best with a structural specification for the unit 分支测试工作可以被看成是单元的一个结构规格。
Cobertura calculates coverage both by the number of lines tested and by the number of branches tested Cobertura通过被测试的行数和被测试的分支数来计算覆盖率。
It provides a thorough test of complex conditions , an area of frequent programming and design error and an area , which is not addressed , by branch testing 它提供复杂情况一个详尽的测试,频繁编程和设计错误和区域区域,不演讲,由分支测试。
As for branch testing , it is important for test designers to beware that concentrating on conditions could distract a test designer from the overall functionality of a unit 至于分支测试,它是重要为测试设计人员当心,集中情况能与单元的整体功能分散测试设计人员。
A structural unit specification will enable branch test cases to be designed to achieve decision coverage , but a purely functional unit specification could lead to coverage gaps 一个结构单元规格将使分支测试用例被设计达到决定覆盖面,但只有功能部件规格却会导致覆盖率缺失。